﻿//-----------------------------------------------------------------------
// <summary>
//  The file contains a class that used to treat style cop settings 
// </summary>
// <copyright file="PopupDialogActivationBehavior.cs" company="DSSoftLogic">
//     Copyright@ DSSoftLogic 2011, Non-Commercial. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------
namespace Property.Silverlight.Infrastructure
{
    /// <summary>
    /// The popup dialog activation behavior.
    /// </summary>
    public class PopupDialogActivationBehavior : DialogActivationBehavior
    {
        /// <summary>
        /// Creates a wrapper for the CreateWindow.
        /// </summary>
        /// <returns>Instance of the <see cref="System.Windows.Controls.Primitives.Popup"/> wrapper.</returns>
        protected override IWindow CreateWindow()
        {
            return new PopupWrapper();
        }
    }
}
